<template>
<!--    安防行为识别预警-->
    <div class="early_warning">
        <div>
            <span>行为分析：</span>
            <span>吸烟</span>
        </div>
        <div>
            <span>行为识别：</span>
            <span>2022-06-23 10:00:00</span>
        </div>
        <div>
            <img src="@/assets/image/waringcarback.png" alt="">
        </div>
        <div @click="Todetails">
            预警详情
        </div>
    </div>
</template>

<script lang="ts" setup>
import {reactive} from "vue";
const emit = defineEmits(['todetails'])
// 去详情页
const Todetails = () => {
    emit('todetails');
};
</script>

<style scoped lang="scss">
.early_warning{
    padding: 30px ;
    >div{
        display: flex;
        align-items: center;
        margin-bottom: 15px;
        span{
            font-size: 14px;
            &:nth-of-type(1){
                color: #B6B5B5;
            }
            &:nth-of-type(2){
                color: #E24324;
            }
        }
        &:nth-of-type(2){
            margin-bottom: 20px;
            span{
                &:nth-of-type(2){
                    color: #FFFFFF;
                }
            }
        }
        &:nth-of-type(3){
            height: 130px;
            margin-bottom: 30px;
            img{
                width: 100%;
                height: 100%;
            }
        }
        &:nth-of-type(4){
            margin: 0 auto;
            display: flex;
            justify-content: center;
            width: 88px;
            height: 28px;
            line-height: 28px;
            background: #FBCE05;
            border-radius: 4px;
            font-size: 14px;
            text-align: center;
            color: #08233A;
            cursor: pointer;
        }
    }
}
</style>